import request from "@/utils/request"
import { type Music_doc } from "@/types/Music"



enum API {
    Doc_add = '/music/doc',
    Base_url = "/music"
}

export const Add_doc = (data: Music_doc) => request({
    method: "post",
    url: API.Doc_add,
    data
})

export const Get_list = (id: number) => request({
    method: "get",
    url: API.Base_url + `/${id}`
})
export const Music_put = (data: Music_doc) => request({
    method: "put",
    url: API.Base_url,
    data
})
export const MuSIC_dele = (id: string) => request({
    method: "delete",
    url: API.Base_url + `/${id}`
})